//
//  WuLiuDuanViewController.m
//  Experss
//
//  Created by wmwMAC on 17/8/11.
//  Copyright © 2017年 嗯，大葱. All rights reserved.
//

#import "WuLiuDuanViewController.h"

#import "PeiSongDingDanViewController.h"
#import "QuHuoViewController.h"
#import "SongHuoViewController.h"
#import "MinePeiSongViewController.h"


@interface WuLiuDuanViewController ()

@end

@implementation WuLiuDuanViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //默认字体颜色
    [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor blackColor], UITextAttributeTextColor, nil] forState:UIControlStateNormal];
    
    
    //选中颜色
    [[UITabBarItem appearance] setTitleTextAttributes:                                                         [NSDictionary dictionaryWithObjectsAndKeys:kNavBarColor,UITextAttributeTextColor, nil]forState:UIControlStateSelected];
    [self configureTabarViewController];
}
- (void)configureTabarViewController {
    
    
    
    PeiSongDingDanViewController  *homePage = [[PeiSongDingDanViewController alloc] init];
    UINavigationController *firstVC = [[UINavigationController alloc] initWithRootViewController:homePage];
    firstVC.title = @"订单列表";
    firstVC.tabBarItem.image = [[UIImage imageNamed:@"biaoqian_dingdan2"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    firstVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"biaoqian_dingdan1"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    

    QuHuoViewController*findDoc = [[QuHuoViewController alloc] init];
    UINavigationController *fD = [[UINavigationController alloc] initWithRootViewController:findDoc];
    fD.title = @"取货列表";
    fD.tabBarItem.image = [[UIImage imageNamed:@"biaoqian_quhuo2"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    fD.tabBarItem.selectedImage = [[UIImage imageNamed:@"biaoqian_quhuo1"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    
    SongHuoViewController *hot = [[SongHuoViewController alloc] init];
    UINavigationController *secondVC = [[UINavigationController alloc] initWithRootViewController:hot];
    hot.title = @"送货列表";
    secondVC.tabBarItem.image = [[UIImage imageNamed:@"biaoqian_songhuo2"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    secondVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"biaoqian_songhuo1"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    
    
    MinePeiSongViewController *classify = [[MinePeiSongViewController alloc]init];
    UINavigationController *thirdVC = [[UINavigationController alloc] initWithRootViewController:classify];
    thirdVC.title = @"我的";
    thirdVC.tabBarItem.image = [[UIImage imageNamed:@"biaoqian_dingdan2"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    thirdVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"biaoqian_dingdan1"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    
    
    
    
    
    self.viewControllers = @[firstVC,fD,secondVC,thirdVC,];
    
    
    
    
    [[UITabBar appearance] setBarTintColor:[UIColor whiteColor]];
    [UITabBar appearance].translucent = NO;
}


@end
